<template>
  <div class="borderBox">
    <el-row>
      <el-col :span="18" :offset="3">
        <el-table :data="datas" style="width: 100%">
          <el-table-column type="index" width="50"></el-table-column>
          <el-table-column prop="name" label="属性名称"></el-table-column>
          <el-table-column prop="desc" label="描述"></el-table-column>
          <el-table-column prop="type" label="类型"></el-table-column>
          <el-table-column prop="remark" label="备注"></el-table-column>
        </el-table>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      datas: [
        {
          name: "width",
          desc: "宽度",
          type: "String",
          remark: "默认auto"
        },
        {
          name: "height",
          desc: "高度",
          type: "String",
          remark: "默认300px"
        },
        {
          name: "tooltipVisible",
          desc: "是否显示tooltip提示框",
          type: "String",
          remark: "默认true"
        },
        {
          name: "legendVisible",
          desc: "是否显示图例",
          type: "String",
          remark: "默认true"
        },
        {
          name: "dimension",
          desc: "定义为维度的字段名称",
          type: "String",
          remark: "多个用逗号分隔"
        },
        {
          name: "metrics",
          desc: "定义为指标的字段名称",
          type: "String",
          remark: "多个用逗号分隔"
        },
        {
          name: "extend",
          desc: "echarts扩展配置",
          type: "Object",
          remark: ""
        },
        {
          name: "activeTimeGap",
          desc: "tooltip循环播放的间隔(ms)",
          type: "String",
          remark: "0时为关闭"
        },
        {
          name: "beforeConfig",
          desc: "数据转化为配置项开始前触发事件",
          type: "Function",
          remark: "参数为data"
        },
        {
          name: "afterSetOption",
          desc: "生成图之后获取echarts实例",
          type: "Function",
          remark: "参数为echarts实例"
        },
        {
          name: "afterSetOptionOnce",
          desc: "生成图之后获取echarts实例(只执行一次)",
          type: "Function",
          remark: "参数为echarts实例"
        },
        {
          name: "events",
          desc: "事件",
          type: "Object",
          remark: ""
        }
      ]
    };
  }
};
</script>

<style >
.borderBox {
  height: 100%;
}
.box-card {
  background-color: #333;
}
.el-card__body {
  background-color: #333;
  text-align: center;
}
.el-col {
  height: 100%;
}
.card-header {
  color: #fff;
  text-align: left;
}
.el-card__header {
  border-bottom: 1px solid #444 !important;
  background-color: #333 !important;
}
</style>